<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>后台订单查询-B2C-racewind商城</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	

	<style  type="text/css">
			@import "./css/back/header_back.css";
			@import "./css/back/order_search.css";
	</style>
	
	<script language="javascript" type="text/javascript" src="javascript/checkTools.js">
	</script>
	<script language="javascript" type="text/javascript" src="javascript/Admin/order_search.js">
	</script>
	<script language="javascript" type="text/javascript" src="javascript/commonCheck.js">
	</script>
		
 

  </head>
  
  <body>
  
     <jsp:include flush="true" page="header_back.jsp"></jsp:include>
     
     
     <div class="order-admin-Frame">
     	<h2>订单查询</h2>
		<form name="orderAdminForm" id ="orderAdminForm" method="post" onsubmit="return checkOrderInput()" action="getOrderAction">
	     	<table class="order-admin-Table" border="0" align="center">
	     		
	     		<tr>
	     			<td>客户号：</td><td><input type="text" name="userId"></td>
	     		</tr>
	     		<tr>
	     			<td>
					  <b>起始时间：</b>
					</td>
					<td>
					   <select id="querystartyear" name="querystartyear">
						  <%
						  	
						  int currentyear = Calendar.getInstance().get(Calendar.YEAR);
						  	
						  	for(int year = 2010; year <= currentyear;year ++){
						  	%>
						  		<option value="<%=year%>"><%=year%></option>
						  	<% 
						  	} 
						  %>
						</select><a>年</a>
						
						<select id="querystartmonth" name="querystartmonth">
					   	  <%
					   	  	int mon = 1;
					   	  	for( mon = 1;mon <= 12;mon++){
					   	  	%>
					   	  		<option value ="<%=mon%>"><%=mon%></option>
					   	  		<% 
					   	  	}
					   	  %>
						</select><a>月</a>
						
						<input type="text" id="querystartday" name="querystartday" Style="width:30px" maxlength="2" value="1" onblur="checkday('querystartyear','querystartmonth',this);"/>
						<a>日</a>

					</td>
	     		</tr>
	     		<tr>
	     			<td>
					  <b>结束时间：</b>
					</td>
					<td>
					   <select id="querystopyear" name="querystopyear">
						  <%						  	
						  	for(int year = 2010; year <= currentyear;year ++){
						  	%>
						  	<%
						  		if(year == currentyear){
						  	%>
						  		<option selected="selected" value="<%=year%>"><%=year%></option>
						  	<%
						  		}else{
						  	%>
						  		<option value="<%=year%>"><%=year%></option>
						  	<% 
						  		}
						  	} 
						  %>
						</select><a>年</a>
						
						<select id="querystopmonth" name="querystopmonth">
					   	  <%
					   	  	//int mon = 1;
					   	  	for( mon = 1;mon <= 12;mon++){
					   	  	%>
					   	  	<%
					   	  		if(mon == 12){
					   	  	%>
					   	  		<option selected="selected" value ="<%=mon%>"><%=mon%></option>
					   	  	<%
					   	  		}else{
					   	  	%>
					   	  		<option value ="<%=mon%>"><%=mon%></option>
					   	  		<% 
					   	  		}
					   	  	}
					   	  %>
						</select><a>月</a>
						
						<input type="text" id="querystopday" name="querystopday" Style="width:30px" maxlength="2" value="31" onblur="checkday('querystopyear','querystopmonth',this);"/>
						<a>日</a>

					</td>
	     		</tr>
	     		<tr>
	     			<td>
					  <b>请选择订单状态</b>
					</td>
					<td>
					   <select id="orderstate" name="orderState">					   	  
					   	  	<option value ="0">所有</option>
					   	  	<option value ="1">未审核</option>
					   	  	<option value ="2">已审核</option>										   	  
						</select>
					</td>
	     		</tr>
	     		<tr>
	     			<td>
					  <b>支付状态：</b>
					</td>
					<td>					  						
						<select id="orderpaystate" name="orderPayState">	
					   	  		<option value ="0">所有</option>
					   	  		<option value ="1">未支付</option>
					   	  		<option value ="2">已支付</option>
					   </select>
					</td>
	     		</tr>
	     		
	     		
	     		
	     		<tr>
	     			<td class="buttonTd"  colspan="2" align="right"> 
	     				<td align="right">
	     				<input type="submit" value="查询"/>
	     			</td>
	     		</tr>
	     	</table>
	     </form>
     </div>
     
     
     <jsp:include page="../B2C/footer.jsp" flush="true"></jsp:include>
  </body>
</html>
